home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-04-16 | 1.0 KB | 32 lines | [TEXT/GEOL] |
- Item forwarded by A33 to A34
-
- Item 4721248 12-April-90 15:53PDT
-
- From: ROSENSTEIN1 Rosenstein, Larry
-
- To: POWERUP.ENG Power Up Software,PRT
- MACAPP.TECH$ MacApp Technical
-
- Sub: RE>Re-MacApp and code res
-
- Attn: James Plamondon
- Attn: MacApp Tech
- SentBy: Larry Rosenstein
- Reply to: RE>Re-MacApp and code resour
- James,
-
- Your idea of a RequestService routine would certainly work. Alternatively,
- you can pass to the external resource a pointer to a dispatch table for each
- of the routines in the main program that the resource might need to access.
- Then you can provide glue code for the external resource writer that accesses
- the proper dispatch table entry.
-
- This avoid the ugly CASE statement. The routines in the dispatch table must
- be normal procedures/functions (as opposed to methods). Also, you can
- customize each routine, rather than using a single RequestService interface
- with a selector parameter.
-
- Larry
-
-
-